﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AutoSentEmailTest.aspx.cs" Inherits="SysManage_AutoSentEmailTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>测试</title>
    <link href="CSS/SubStyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 10%;
            text-align: right;
            height: 20px;
        }
        .style2
        {
            text-align: left;
            height: 20px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <table cellpadding="0" cellspacing="0" class="topTable">
            <tr>
                <td class="topTd">
                    <asp:Label ID="lblLocation" runat="server" Text="<%$ Resources:language, Location %>"></asp:Label><img
                        alt="当前位置" src="Image/weizhi.gif" />>><asp:Label ID="Label1" runat="server" Text="自动更新发邮件测试"></asp:Label><asp:Label
                            ID="Label2" runat="server" Text="<%$ Resources:language, Must1 %>"></asp:Label><font
                                color="#ff0000">*</font><asp:Label ID="Label3" runat="server" Text="<%$ Resources:language, Must2 %>"></asp:Label>
                </td>
            </tr>
        </table>
        <fieldset style="width: 98%;">
            <legend><font style="font-size: 12px;">
                <asp:Label ID="lblLegend1" runat="server" Text="<%$ Resources:language, Legend1 %>"></asp:Label></font></legend>
            <div style="width: 100%;" align="center">
                <table border="0" cellpadding="0" cellspacing="0" class="InputTable">
                    <tr>
                        <td colspan="1" class="topTdInput">
                            <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
                                <tr>
                                    <td class="trHeadFoot" colspan="6">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        </td>
                                    <td class="style2">
                                        <asp:Button ID="cmdAutoUpdate" runat="server" Text="自动更新"
                                CssClass="cmdStyle" OnClick="cmdAutoUpdate_Click" />
                                    </td>
                                    <td class="style2">
                                        <asp:Button ID="cmdAutoSentEmail" runat="server" Text="自动发邮件"
                                CssClass="cmdStyle" OnClick="cmdAutoSentEmail_Click" />
                                    </td>
                                    <td class="style1">
                                        &nbsp;</td>
                                    <td class="style2">
                                    </td>
                                    <td class="style1"> </td>
                                </tr>
                                <tr>
                                    <td class="td10">
                                        </td>
                                    <td class="td20">
                                        &nbsp;</td>
                                    <td class="td20">
                                        &nbsp;</td>
                                    <td class="td10">
                                        &nbsp;</td>
                                    <td class="td20">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="td10">
                                        &nbsp;</td>
                                    <td class="td20">
                                        <asp:Button ID="cmdFromXml" runat="server" Text="From xml"
                                CssClass="cmdStyle" OnClick="cmdFromXml_Click" Visible="False" />
                                    </td>
                                    <td class="td20">
                                        <asp:Button ID="cmdSentEmail" runat="server" Text="Sent Email"
                                CssClass="cmdStyle" OnClick="cmdSentEmail_Click" Visible="False" />
                                    </td>
                                    <td class="td10">
                                        &nbsp;</td>
                                    <td class="td20">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="td10">
                                        &nbsp;</td>
                                    <td class="td20">
                                        &nbsp;</td>
                                    <td class="td20">
                                        &nbsp;</td>
                                    <td class="td10">
                                        &nbsp;</td>
                                    <td class="td20">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="td10">
                                        &nbsp;</td>
                                    <td class="td20">
                                        <asp:Button ID="cmdTimeTest" runat="server" Text="TimeTest"
                                CssClass="cmdStyle" OnClick="cmdTimeTest_Click" />
                                    </td>
                                    <td class="td20">
                                        <asp:Button ID="cmdpxLength" runat="server" Text="px&amp;length"
                                CssClass="cmdStyle" OnClick="cmdpxLength_Click" Visible="False" />
                                    </td>
                                    <td class="td10">
                                        &nbsp;</td>
                                    <td class="td20">
                                        <input id="Button1" type="button" value="MathRound" onclick="TestMathRound()" /></td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr><td colspan="6" class="trHeadFoot"></td></tr>
                                <tr>
                                    <td class="td10">
                                        &nbsp;</td>
                                    <td class="td20">
                                        <asp:Button ID="cmdSubstring" runat="server" Text="SubString"
                                CssClass="cmdStyle" OnClick="cmdSubstring_Click" />
                                    </td>
                                    <td class="td20">
                                        <asp:TextBox ID="txt" runat="server" Visible="False"></asp:TextBox>
                                    </td>
                                    <td class="td10">
                                        &nbsp;</td>
                                    <td class="td20">
                                        <input id="Checkbox1" disabled="disabled" type="checkbox" checked="checked" /></td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="td10" align="right">
                                    </td>
                                    <td class="td20" colspan="4">
                                        <asp:Label ID="lblxml" runat="server"></asp:Label>
                                    </td>
                                    <td class="trHeadFoot"></td>
                                </tr>
                                <tr>
                                    <td class="trHeadFoot" colspan="6">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <script language="javascript" type="text/javascript">
                    function TestMathRound() {
                        alert(Math.round(2564.486786*10000)/10000);
                        alert(Math.round(234493043.34453*10000)/10000);
                    }
                </script>
            </div>
        </fieldset>    
    </form>
</body>
</html>
